//
//  EventTopView.m
//  Runone
//
//  Created by runone02 on 16/8/30.
//  Copyright © 2016年 runone. All rights reserved.
//

#import "EventTopView.h"

@implementation EventTopView

- (void)awakeFromNib {
    [super awakeFromNib];
}

+ (instancetype)eventTopView
{
    return [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil] lastObject];
}
- (void)setDetailModel:(EventDeatilModel *)detailModel {
    _detailModel = detailModel;
    
    self.IncidentTypeLabel.text = [NSString stringWithFormat:@"事件类型：%ld",(long)_detailModel.IncidentType];
    self.DerectionLabel.text  = [NSString stringWithFormat:@"方向：%ld",(long)_detailModel.RoadDerection];
    self.PileLabel.text = [NSString stringWithFormat:@"桩号区间：%@+%@至%@+%@",_detailModel.BeginPile,_detailModel.BeginPileDistance,_detailModel.EndPile,_detailModel.EndPileDistance];
    self.OccurTimeLabel.text = [NSString stringWithFormat:@"开始时间：%@",_detailModel.OccurTime];
    self.EndTimeLabel.text = [NSString stringWithFormat:@"结束时间：%@",_detailModel.EndTime];
    self.LastTimeLabel.text = @"12";
    self.ConstructionUnitLabel.text = [NSString stringWithFormat:@"部门名称:%@",_detailModel.RecordUserOrgName];
    self.ContactUserLabel.text = [NSString stringWithFormat:@"上报人:%@",_detailModel.RecordUserName];
    self.ContactPhoneLabel.text = [NSString stringWithFormat:@"联系人电话:%@",_detailModel.Telephone];
    self.EventDescription.text = @"事件描述：";
    self.HistoryMessageLabel.text = @"历史信息";
}

@end
